package day11.day12;

public class Student {
    private String name ="张三";
    private  int age =18;
    private  String stuNo = "1000";

    public Student(String name, int age, String stuNo) {
        this.name = name;
        this.age = age;
        this.stuNo = stuNo;
    }



    public Student() {
    }

    @Override
    public String toString() {
        //{name:"张三",age:18,stuNo:1000}
        String jsonStr ="{name:\"张三\",age:18,stuNo:1000}";
        //return super.toString();
        return jsonStr;
    }
}
